#include <iostream>
#include <string>
#include "SDLGame.h"


int main(int argc, char** argv)
{
    Game *game = 0;
	try
	{
		game = new SDLGame();
		game->gameLoop();
	}
	catch(std::string error)
	{
		std::cerr << error.c_str() << "\n\n";
		std::cin.get();
	}

    if (game)
        delete game;

	return 0;
}
